package sunsun.xiaoli.jiarebang.beans;

/**
 * Created by Mr.w on 2017/5/13.
 */

public class FeederWeiShiModel implements Comparable<FeederWeiShiModel> {

    public FeederWeiShiModel() {

    }

    public FeederWeiShiModel(int en, String t, int position) {
        setT(t);
        setEn(en);
        setPosition(position);
    }

    public int getPosition() {
        return position;
    }

    public void setPosition(int position) {
        this.position = position;
    }

    int position;
    private int en;//en	1	int		使能标志	1：使能，0：禁用
    private String t;//	1	String		时段时间	格式HHmm，UTC时间
    private int c;//喂食份数

    public int getEn() {
        return en;
    }

    public void setEn(int en) {
        this.en = en;
    }

    public String getT() {
        return t;
    }

    public void setT(String t) {
        this.t = t;
    }

    public int getC() {
        return c;
    }

    public void setC(int c) {
        this.c = c;
    }

    @Override
    public int compareTo(FeederWeiShiModel arg0) {
        // TODO Auto-generated method stub
        return Integer.valueOf(t).compareTo(Integer.valueOf(arg0.getT()));
    }
}
